package com.gxa.p2p.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author xiangzuo
 * 文章
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("文章实体")
public class Article implements Serializable {

  @ApiModelProperty(name = "id",value = "文章编号")
  private Long id;
  @ApiModelProperty(name = "title",value = "文章标题")
  private String title;
  @ApiModelProperty(name = "type",value = "文章分类")
  private String type;

  @ApiModelProperty(name = "introduction",value = "一句话介绍")
  private String introduction;

  @ApiModelProperty(name = "releaseTime",value = "发布时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Timestamp releaseTime;
  @ApiModelProperty(name = "sort",value = "排序")
  private Integer sort;

  @ApiModelProperty(name = "state",value = "状态")
  private Boolean state;
  @ApiModelProperty(name = "origin",value = "文章来源")
  private String origin;
  @ApiModelProperty(name = "author",value = "作者")
  private String author;
  @ApiModelProperty(name = "textB",value = "内容")
  private String textB;
  @ApiModelProperty(name = "img",value = "活动封面")
  private String img;
  @ApiModelProperty(name = "url",value = "跳转地址")
  private String url;
  @ApiModelProperty(name = "isTop",value = "是否置顶")
  private Boolean isTop;

}
